import React from 'react';

import { Card } from 'antd';

import styles from "./style.moudle.scss";

type Props = {
  header:any;
}

class PageCard extends React.PureComponent<Props> {
  static defaultProps = {
    header: null
  }

  render() {
    const {
      header,
      children
    } = this.props;
    return (
      <React.Fragment>
        <Card
          bordered={false}
          children={header}
          className={styles.header}
        />
        <Card
          bordered={false}
          children={children}
          className={styles.table_center}
        />
      </React.Fragment>
    )
  }
}

export default PageCard;
